/**
* @Description: WoShop商城
* @Author: 梧桐
* @Copyright: 武汉一一零七科技有限公司©版权所有
* @Link: www.s1107.com
* @Contact: QQ:2487937004
*/
<template>
  <view class="index_class">
    <view class="trading">
      <radio-group @change="radioChange">
        <label class="uni-list-cell uni-list-cell-pd" v-for="(item, index) in items" :key="index">
          <view style="width:10%">
            <radio color="#ff9900" :value="item.value" :checked="item.value === current" />
          </view>
          <!-- <image :src="item.img" /> -->
          <text style="width: 90%;">{{item.text}}</text>
        </label>
      </radio-group>
      
      <view class="person-button">
        <u-button type="warning" mode="dark"  @click="navDetail">确定</u-button>
        
        <view class="btn-text">选择认证类型后不可更改,请认真选择</view>
      </view>
    </view>
  </view>
</template>

<script>
export default {
  onShow(){
  
  },
  data(){
    return {
      items: [{
        value: 1,
        text: '个人卖家,微商,网络红人,海外买',
      },
        {
          value: 2,
          text: '企业店铺，需要上传营业执照',
          // img:this.$baseUrl+'uploads/category/20190312/7f66713de828d2cfd3b1f0b0a5feb2f1.jpg'
          
        }
      
      ],
      current: 1,
      radioindex:1
      
    }
  },
  onLoad() {
  	console.log(123)
	this.navDetail()
  },
  methods: {
    radioChange(e){
      // console.log(e.detail.value)
      this.radioindex = e.detail.value
    },
    navDetail(){
		// if(this.radioindex == 1){
		// 	uni.navigateTo({
		// 		url:'/pagesB/personalSon/information?typeshop='+this.radioindex
		// 	})
		// }else{
		// 	uni.navigateTo({
		// 		url:'../applyShop/applyShop?typeshop='+this.radioindex
		// 	})
		// }
		uni.navigateTo({
			url:'../applyShop/applyShop?typeshop='+this.radioindex
		})
	}
  },
}
</script>

<style>

</style>
